﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using Common;
using BusinessEntity.Common;
using System.Runtime.Serialization;

namespace BusinessEntity.User
{
    [DataContract]
    public class SystemUser
    {
        string fullname = string.Empty;

      
        [DataMember]
        public string FirstName { get; set; }

        [DataMember]
        public string LastName { get; set; }

        [DataMember]
        public int UserId {get;set;}
        
        [DataMember]
        public string LoginId {get; set;}

        [DataMember]
        public SortableCollection<UserRole> UserRoles {get; set;} 

        [DataMember]
        public WorkflowUserRole WorkflowUserRole {get; set;} 

        [DataMember]
        public int WorkflowUserRoleID { get; set; }

        [DataMember]
        public string Password { get; set;}

        [DataMember]
        public UserInfo DNNUserInfo { get; set; }

        [DataMember]
        public DateTime CreatedOn { get; set; }

        [DataMember]
        public DateTime LastUpdatedOn {get; set;}

        [DataMember]
        public string CreatedBy {get; set;}

        [DataMember]
        public string LastUpdatedBy {get; set;}

        [DataMember]
        public string DisplayName { get; set; }

        [DataMember]
        public string Street1 { get; set; }
        
        [DataMember]
        public string Street2 { get; set; }

        [DataMember]
        public string City { get; set; }
        [DataMember]
        public int State { get; set; }
        [DataMember]
        public string StateName { get; set; }
        [DataMember]
        public string FullAddress { get; set; }
        [DataMember]
        public string StateCode { get; set; }
        [DataMember]
        public string ZipCode { get; set; }
        [DataMember]
        public string OfficePhone { get; set; }
        [DataMember]
        public string CellPhone { get; set; }
        [DataMember]
        public string Pager { get; set; }
        [DataMember]
        public string Fax { get; set; }

        [DataMember]
        public string FullName
        {

            get
            {
                return FirstName + " " + LastName;
            }
            set { fullname = value; }
        }
    }
}
